<div>
    <!-- <h2 data-translate="milkbeeApp.card.home.title">Cards</h2> -->
    <h2 >{{vm.cardName}}</h2>
    <jhi-alert></jhi-alert>
    <div class="container-fluid">
        <div class="row">
        	<div class="col-xs-2" >
         	<ol class="breadcrumb">
  			<li><a ui-sref="cardcategory({categoryId:vm.categoryId,categoryName:vm.categoryName})"><<{{vm.categoryName}}</a></li>
			</ol>
			</div>
            <div class="col-xs-4 no-padding-left">
                <button class="btn btn-primary" ui-sref="comment.newcardcomment({cardId:vm.cardId})" >
                    <span class="glyphicon glyphicon-plus"></span>
                    <span  data-translate="milkbeeApp.card.home.reply">
                       Publish
                    </span>
                </button>
            </div>
        </div>
    </div>
   
    <br/>
    <div class="table-responsive">
        <table class="jh-table table table-striped">
            <thead>
                <tr callback="vm.transition()">
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="comment in vm.comments track by comment.seq">    
                    <td>
	                    <div class="panel-heading">
	                    <h4 ng-if="comment.main" >{{comment.title}}</h4>
	                   	<img class="img-circle" width="40px" height="40px" src="/content/images/upload/avatar/{{comment.userId}}.png" />
	                   	<img ng-if="vm.moderators[comment.userId]" width="40px" height="40px" src="/content/images/mana/ring.png" />  
	                   	<img ng-if="comment.authentication" width="40px" height="40px" src="/content/images/mana/authentication.png" />  
	                   	<img ng-if=" comment.mana > 0 " width="40px" height="40px" src="/content/images/mana/1.png" /> 
	                   	<span>[{{comment.estate}}]</span> 
	                   	<u>{{ comment.author }}</u>
	                   	{{comment.seq}}<span  data-translate="milkbeeApp.card.home.level"></span> 
	                   	 {{ comment.createdAt | date:'medium'}} 
	                   	<span ng-if=" comment.light > 0 " style="color:#EE1"class="glyphicon glyphicon-star"></span>
	                   	<span ng-if=" comment.light > 10 " style="color:#EE1"class="glyphicon glyphicon-star"></span>
	                   	<span ng-if=" comment.light > 100 " style="color:#EE1"class="glyphicon glyphicon-star"></span>
	                   	<span ng-if=" comment.light > 1000 " style="color:#EE1"class="glyphicon glyphicon-star"></span>
	                   	<span ng-if=" comment.light > 10000 " style="color:#EE1"class="glyphicon glyphicon-star"></span>
	                   	<button class="btn btn-primary" ng-click="vm.light({id:comment.id,main:comment.main})" >
		                    <span class="glyphicon glyphicon-star"></span>
		                    <span  data-translate="milkbeeApp.card.home.light">
		                       light
		                    </span>
		                </button>
	                   	<button class="btn btn-primary" ng-click="vm.accusation({id:comment.id,main:comment.main})" >
		                    <span class="glyphicon glyphicon-bell"></span>
		                    <span  data-translate="milkbeeApp.card.home.accusation">
		                       accusation
		                    </span>
		                </button>
	                   	<button class="btn btn-primary" ng-click="vm.focus({id:comment.userId})" >
		                    <span class="glyphicon glyphicon-eye-open"></span>
		                    <span  data-translate="milkbeeApp.card.home.focus">
		                       accusation
		                    </span>
		                </button>
	                   	<button ng-if="comment.main" class="btn btn-primary" ng-click="vm.favorite({id:comment.id})" >
		                    <span class="glyphicon glyphicon-heart"></span>
		                    <span  data-translate="milkbeeApp.card.home.favorite">
		                       accusation
		                    </span>
		                </button>
	                    </div>
	                    <div class="panel-body">
	                    	<hr />
	                    	<article id="word-display" ng-bind-html="comment.content | trustHtml">
	            			</article>
	            		</div>
	            		<div class="jumbotron" ng-if="comment.attachment">
						  <a class="btn btn-info glyphicon glyphicon-paperclip" href="/content/images/upload/attachment/{{comment.attachment}}" role="button" data-translate="global.form.download">download</a>
						  <span><span data-translate="global.form.downcount"></span>:{{comment.download}}</span>
						</div>
						<div ng-if="comment.essence>2" style="height:0px;"><img style="position:absolute;top:-0px;right:170px;"src="/content/images/mana/essence.gif"></div>
                    	<div class="panel-body">
                    		<hr />
                    		{{comment.underwrite}}
                    	</div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="text-center">
        <jhi-item-count page="vm.page" total="vm.queryCount" items-per-page="vm.itemsPerPage"></jhi-item-count>
        <uib-pagination class="pagination-sm" total-items="vm.totalItems" items-per-page="vm.itemsPerPage" ng-model="vm.page" ng-change="vm.transition()"></uib-pagination>
    </div>
</div>
